#!/bin/bash
set -e

echo -e "\n======================== 2. 更新源代码 ========================\n"
#jd update
echo

#crontab /root/jd/config/crontab.list
# 保存环境变量，开启crontab服务
env >> /etc/default/locale
#/etc/init.d/cron start
service cron restart
jd panelon

echo -e "容器启动成功...\n"

cd /var/local
git clone https://gitee.com/available2099/freenom.git
echo "freenom下载完成"
cd 
node /root/jd/panel/server.js
echo "启动"

#crond -f

exec "$@"
